/*
 * @Description: 入口js
 * @Author: wangfuwei
 * @Date: 2020-11-30 13:06:57
 * @LastEditors: wangfuwei
 * @LastEditTime: 2021-04-26 08:27:12
 * @FilePath: /horizon-frontend/src/main.js
 */
import Vue from "vue";
import App from "@/App.vue"; //入口组件
import router from "@/router"; //路由
import store from "@/store"; //状态管理
import { VueAxios } from "@/utils/request"; //ajax

import "@/core/use"; //组件引入
import bootstrap from "@/core/bootstrap"; //初始化
import i18n from "@/locales"; //国际化
import "@/global.less"; //全局样式
import "@/core/permission"; //权限控制

Vue.use(VueAxios); //挂载axios --> Vue.$http和Vue.axios
Vue.config.productionTip = false;

window.vm = new Vue({
  router,
  store,
  i18n,
  created: bootstrap,
  render: h => h(App),
}).$mount("#app");
